<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>

<chiptrack:checkLogon sourcePage="/priceSetting.do"/>


<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
</HEAD>


<SCRIPT language="JavaScript">

    function GetAllProducts()
    {   
        newWindow = window.open('loadProducts.do','optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=500,height=600,left=300,top=30,resizable=no');
  	//newWindow.moveTo(300,30);
  	newWindow.focus();
    }
    
    function assignProduct(passedValue)
    {
	document.priceForm.productId.value = passedValue;
	window.focus();
    }
    
    function searchPrices()
    {
        document.priceForm.action.value = "loadPricing";
        document.priceForm.submit();
    }

    // Balaram on July 29, 2003
    function showErrorReportPage()
    {
        newWindow = window.open ('<%=chipTracContext%>/reportProblem.do','reportProblem','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=750,height=400,resizable=no');
        newWindow.focus();
    }

</SCRIPT>

<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0" >

<!-- Top Header Start-->

<%@ include file="/jsp/includes/header.jsp" %>

<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->
    
<%@ include file="/jsp/marketing/price_setting_menu.jsp" %>

</TD>
<!-- end of the side navigations -->
<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>

<center><span class="NArialW">Search Product Pricing</span></center>
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10>
<html:form name="priceForm" action="/priceSetting.do" method="post" type="com.scalar.chiptrack.marketing.forms.PricingForm" onsubmit="javascript:searchPrices();">
<table border="0" width="90%" align=right>
     <tr>
        <td colspan="3" ><chiptrack:errors styleClass="NArialL" /></td>
     </tr>

    <tr>
      <td width="15%"></td>
      <td width="25%"><font class="NArialL">Product Name :<font size="-2"><br>(<bean:message key="label.mfgPartNumber" />)</font></td>
      <td width="60%"><font class="NArialL">
            <html:select name="priceForm" property="productId" styleClass="txfield">
                <html:option value="">--Select Product Name--</html:option>
                <html:options collection="mktgParts" property="value" labelProperty="label"/>
            </html:select>
      </td>
     </tr>
     <tr>
        <td width="15%"></td>
        <td  width="25%" class='NArialL'>Customer Name :</td>
        <td width="60%" class="NArialL">
        <html:select name="priceForm" property="customerId" styleClass="txfield">             
             <html:options collection="customers" property="value" labelProperty="label"/>
        </html:select>
        </td>
     </tr>
     <tr>
      <td width="15%"></td>
      <td width="25%" class="NArialL">Sales Order Type :</td>
      	<td width="60%" class="NArialL">
            <html:select name="priceForm"  property="sample" styleClass="txfield">
                <html:option value="1">Regular</html:option>
                <html:option value="0">Sample</html:option>
            </html:select>
          </td>
    </tr>
    <tr><td colspan=3><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr>
      <td colspan=3 align=center><a href="javascript:searchPrices();"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/search.gif" onMouseOver="window.status='Click to View Prices';return true" onmouseout="window.status='';return true" title="Click here to View Prices"></a>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <a href="javascript:document.priceForm.reset();"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/reset.gif" width="53" height="17" onMouseOver="window.status='Click to Reset';return true" onmouseout="window.status='';return true" title="Click here to Reset"></a></td>
    </tr>
    <tr><td colspan=3><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>

    <logic:equal name="showList" value="TRUE">

    <tr><td colspan=3>
    <table border="0" width="90%" align=right>
    <tr>
    <td width='55%' class="NArialL" colspan='2' align="center" bgcolor="#993333">
                <font color="#FFFFFF">Quantities</font></td>
        <td width='35%' class="NArialL" rowspan='2' align="center" bgcolor="#993333"><font color="#FFFFFF">Price</font></td>
    </tr>    
    <tr>

        <td width='25%' class="NArialL" align="center" bgcolor="#993333"><font color="#FFFFFF"> From </font></td>
        <td width='30%' class="NArialL" align="center" bgcolor="#993333"><font color="#FFFFFF"> To </font></td>
        <td width='35%'></td>
     </tr>
     <logic:iterate id="Pricing" name="priceForm" property="priceList">
     <tr>

        <td width='25%' class="NArialL"> <bean:write name="Pricing" property="fromQty"  /> </td>
        <td width='30%' class="NArialL"> <bean:write name="Pricing" property="toQty"   /> </td>
        <td width='35%' class="NArialL" align="center">
            <%-- Added by Krishna Prasad on 11 May 2004 , to display Price value with the dollar and double zero's  --%>
            <bean:write name="Pricing" property="priceAsString" />
            <%-- Commented by Krishna Prasad on 11 May 2004 , because it is not displaying the dollar and double zero's  --%>
            <%-- <bean:write name="Pricing" property="price" /> --%>
        </td>
     </tr>

     </logic:iterate>
     </table>
     </td></tr>     
     </logic:equal>
  </table>
<input type="hidden" name="action" value="">
</html:form>
<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>
<!-- Footer starts here -->

<%@ include file="/jsp/includes/footer.jsp" %>

<!-- footer end here -->

</BODY>
</HTML>
